package oa.service.impl;

import java.io.Serializable;
import java.util.Collection;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import oa.dao.ForumDao;
import oa.domain.forum.Forum;
import oa.domain.page.PageBean;
import oa.service.ForumService;
import oa.util.HQLHelper;
@Service("forumService")
public class ForumServiceImpl implements ForumService{

	@Resource(name="forumDao")
	private ForumDao forumDao;
	
	@Override
	public Collection<Forum> getAllForum() {
		// TODO Auto-generated method stub
		return this.forumDao.getAllEntry();
	}

	@Override
	public Forum getForumById(Serializable id) {
		// TODO Auto-generated method stub
		return this.forumDao.getEntryById(id);
	}

	@Override
	public PageBean getPageBean(HQLHelper hh, int currentPage) {
		// TODO Auto-generated method stub
		return this.forumDao.getPageBean(hh, currentPage);
	}

}
